/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import net.minecraft.entity.Entity;
/*    */ import net.minecraft.entity.EntityLivingBase;
/*    */ import net.minecraftforge.event.entity.living.LivingDeathEvent;
/*    */ import net.minecraftforge.fml.client.FMLClientHandler;
/*    */ import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
/*    */ import net.minecraftforge.fml.common.gameevent.TickEvent;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @EventBusSubscriber(modid = "dragoncore")
/*    */ public class iw
/*    */ {
/*    */   public static void v(LivingDeathEvent a) {
/* 19 */     if (!vda.q) {
/*    */       return;
/*    */     }
/* 22 */     if (!(a.getEntity() instanceof EntityLivingBase))
/* 23 */       return;  EntityLivingBase entityLivingBase = (EntityLivingBase)a.getEntity();
/*    */     
/* 25 */     xea.eos/moe/dragoncore/ija eos/moe/dragoncore/ija = xea.m.v(entityLivingBase);
/* 26 */     if (eos/moe/dragoncore/ija == null || eos/moe/dragoncore/ija.y())
/* 27 */       return;  xea.m.v(entityLivingBase, "death", -1, false);
/*    */   }
/*    */ 
/*    */ 
/*    */   
/*    */   public static void v(TickEvent.ClientTickEvent a) {
/* 33 */     if (a.phase == TickEvent.Phase.END) {
/*    */       return;
/*    */     }
/* 36 */     if (!vda.q) {
/*    */       return;
/*    */     }
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */     
/* 48 */     if (FMLClientHandler.instance().getWorldClient() == null)
/* 49 */       return;  FMLClientHandler.instance().getWorldClient().func_72910_y().forEach(a -> {
/*    */           if (!(a instanceof EntityLivingBase))
/*    */             return; 
/*    */           EntityLivingBase entityLivingBase = (EntityLivingBase)a;
/*    */           xea.eos/moe/dragoncore/ija eos/moe/dragoncore/ija = xea.m.v(entityLivingBase);
/*    */           if (eos/moe/dragoncore/ija == null)
/*    */             return; 
/*    */           if (eos/moe/dragoncore/ija.v()) {
/*    */             if (entityLivingBase.field_82175_bq)
/*    */               xea.m.v((EntityLivingBase)a, "attack", -1, false); 
/*    */           } else if (entityLivingBase.field_82175_bq) {
/*    */             xea.m.v((EntityLivingBase)a, "attack_ig", -1, false);
/*    */           } 
/*    */         });
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\iw.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */